package com.ibeeking.found.common.config.feign;

import com.ibeeking.found.common.config.feign.fallback.GoodsCommonClientFallbackFactory;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author ibeeking
 */
@FeignClient(name = "mall-goods-b-server", contextId = "goodsCommonClient", path = "/b", fallbackFactory = GoodsCommonClientFallbackFactory.class, decode404 = true)
public interface GoodsCommonClient {

    /**
     *  创建商品统计任务
     *
     * @return
     */
    @PostMapping(value = "/job/feign/v1/createJobInfoForGoodsUsageSurvey/{tenantId}")
    ResponseResult<Boolean> createJobInfoForGoodsUsageSurvey(Integer tenantId);
    /**
     *  删除商品统计任务
     *
     * @return
     */
    @PostMapping(value = "/job/feign/v1/delJobInfoForGoodsUsageSurvey/{tenantId}")
    ResponseResult<Boolean> delJobInfoForGoodsUsageSurvey(Integer tenantId);
}
